package umn.angrypenguins.monopoly.models;

import java.io.Serializable;

public class PlayerInstance implements Serializable {

    private static final long serialVersionUID = 1L;

    public PlayerInstance() {
        name = "";
        wallet = 0.0;
    }

    public PlayerInstance(String aName, Double aWallet) {
        name = aName;
        wallet = aWallet;
    }

    private int id;
    
    /** Set the player's id.
     */
    public PlayerInstance setId( int anId ) {
        id = anId;
        return this;
    }
    
    /** Get the player's id.
     */
    public int getId() {
        return id;
    }
    
    private String name;

    /** Set the player's name.
     */
    public PlayerInstance setName(String aName) {
        name = aName;
        return this;
    }

    /** Get the player's name.
     */
    public String getName() {
        return name;
    }

    private Double wallet;

    /** Set the player's wallet.
     */
    public PlayerInstance setWallet(Double aWallet) {
        wallet = aWallet;
        return this;
    }

    /** Get the player's wallet.
     */
    public Double getWallet() {
        return wallet;
    }

    private boolean isGameCreator;

    public boolean isGameCreator() {
        return isGameCreator;
    }

    public void setGameCreator(boolean gameCreator) {
        isGameCreator = gameCreator;
    }

    private String game;

    public String getGame() {
        return game;
    }

    public void setGame(String game) {
        this.game = game;
    }
}
